package com.edu.admin.exception;

import com.edu.admin.enums.ExceptionEnum;



public class SysException extends RuntimeException{

    /**
	 * 标准异常类
	 * 
	 * @author Wangjiong
	 * 
	 */
	private static final long serialVersionUID = -4619308676763961655L;
	private Integer code;

    public SysException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getMsg());
        this.code = exceptionEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
